package custom.cards;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import android.content.Context;
import android.content.Intent;

public class ResponseListener
{

	    private List<IResponseListener> _listeners = new ArrayList<IResponseListener>();
	    

	    public synchronized void addListener( IResponseListener l ) 
	    {
	        _listeners.add( l );
	    }
	    
	    public synchronized void removeListener( IResponseListener l ) 
	    {
	    	
	        _listeners.remove( l );
	    }
	     
	    public synchronized void FireEvent(Context c,Intent i) 
	    {
	    	for(IResponseListener l : _listeners)
	    	{
	    		
	    		l.serverResponded(c,i);
	    	}

	    }
	
	
	
	
}
